<include file="App/Home/View/Public/header.html"/>
<style>
.ui-btn-inline {
	width: 87%;
	margin-top: 2em;
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: none;
	box-shadow: none;
	background-color: #ffc703 !important;
	color: #333 !important;
	text-shadow: none !important;
}
.ui-shadow-inset {
	background-color: rgba(255,255,255,0) !important;
	text-shadow: none;
	border: 1px solid #ffc703 !important;
	box-shadow: none;
	background-color: rgba(0,0,0,0.5) !important;
}
</style>
<!-----------------------------主体内容 开始------------------------------>
<div data-role="main" class="ui-content"> 
  <!------登录表单 开始------->

    <form class="w80p btc_tcoin" method="post" action="" onsubmit="return false;">
      <div class="ui-field-contain padt_5">
        <label for="realname" class="ui-hidden-accessible">{$Think.lang.__XINGMING__}</label>
        <input type="text" name="realname" id="realname"   placeholder="{$Think.lang.__XINGMING__}" />
      </div>
      <div class="ui-field-contain padt_5">
        <label for="certificates" class="ui-hidden-accessible">{$Think.lang.__SHENFENZHANGHAO__}</label>
        <input type="text" name="certificates" id="certificates"   placeholder="{$Think.lang.__SHENFENZHANGHAO__}" />
      </div>
      <input class="w100p" type="button" onclick="ajaxSubmit();" data-inline="true" value="{$Think.lang.__JINXINGRENZHENG__}">
    </form>
  <!------登录表单 结束------->

  <!------一键分享介绍 开始------->
  <p>
  <div class="logo1 w80p">
    <div class="pad0_5">
      <p class="textcolor_yellow1"> <span>{$Think.lang.__SHENFENRENZHENG__}</span> </p>
      <p class="textcolor_yellow1 sizeem8"> <span>{$Think.lang.__SHENFENRENZHENGNEIRONG__} </span> </p>
    </div>
  </div>

<!-----------------------------主体内容 结束------------------------------>
<script type="text/javascript">
	function ajaxSubmit(){
		var name = $('#realname').val();
		var certificates = $('#certificates').val();
		$.ajax({
			url:"{:U('Person/authentication')}",
			type:"POST",
			data:{'name':name,'idcard':certificates},
			dataType:"json",
			success:function (data){
				layer.msg(data.info);
				if(data.status == 1){
					document.location.href  = "{:U('Person/success')}?mid="+data.id;
				}
			}
		})
	}
</script>

<include file="App/Home/View/Public/footer.html"/>